<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Common extends Controller
{
    public function __construct(){

        $da=Session('username');
        if($da==null)
        {
            $this->error('请登录','../guanli');
            //return $this->redirect("/index/login/index");
        }

    }
}
?>
